
<div class="navbar-form navbar-left">
    <button class="btn btn-default" onclick="showAddOne()">新增</button>
</div>

<div class="navbar-form navbar-right">
    <button class="btn btn-default" onclick="exportExcel()">导出</button>
    <div class="form-group">
        <input type="text" class="form-control" id="search" placeholder="Search">
    </div>
    <button class="btn btn-default" onclick="search()">搜索</button>
</div>

<!--写死 只展示这么多个字段，具体通过点击进入详情-->
<table class="table table-bordered table-hover"
       id="data-table">
    <thead>
        <tr>
            <th>ResumeID</th>
            <th>Name</th>
            <th>Mobile</th>
            <th>Email</th>
            <th>File Name</th>
            <th>Option</th>
        </tr>
    </thead>
    <tbody id="list-content">
    </tbody>
</table>

<nav aria-label="Page navigation">
    <ul class="pagination" id="page-pagination">

    </ul>
</nav>


<div class="modal fade" id="my-modal" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="my-modal-title"></h4>
            </div>
            <div id="my-modal-body">

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="my-modal-submit">提交</button>
            </div>
        </div>
    </div>
</div>


<script type="text/template" id="edit-item-template">
    <div class="row">
        <div class="col-md-1"></div>
        <div class="col-md-10">
            <input type="hidden" value="{{id}}" id="edit-item-id">
            <div class="form-group">
                <label>resume id</label>
                <input type="text" class="form-control" id="edit-item-resume-id" placeholder="resume id" value="{{resume_id}}">
            </div>
            <div class="form-group">
                <label>name</label>
                <input type="text" class="form-control" id="edit-item-name" placeholder="name" value="{{name}}">
            </div>
            <div class="form-group">
                <label>mobile</label>
                <input type="text" class="form-control" id="edit-item-mobile" placeholder="mobile" value="{{mobile}}">
            </div>
            <div class="form-group">
                <label>email</label>
                <input type="text" class="form-control" id="edit-item-email" placeholder="email" value="{{email}}">
            </div>
            <div class="form-group">
                <label>real file name</label>
                <input type="text" class="form-control" id="edit-item-real-file-name" placeholder="real file name" value="{{real_file_name}}">
            </div>
        </div>
    <div class="col-md-1"></div>
</script>

<script type="text/template" id="list-content-template">
    {{#each this}}
    <tr
            {{#if_eq is_checked '1'}}
                class="info"
            {{/if_eq}}
    >
        <th id="item-{{resume_id}}-resume-id" onclick="showOne({{resume_id}})">{{resume_id}}</th>
        <td id="item-{{resume_id}}-name">{{name}}</td>
        <td id="item-{{resume_id}}-mobile">{{mobile}}</td>
        <td id="item-{{resume_id}}-email">{{email}}</td>
        <td id="item-{{resume_id}}-real-file-name">{{real_file_name}}</td>
        <td>
            <button class="btn btn-default" onclick="changeCheckStatus({{id}}, {{is_checked}})">
                {{#if_eq is_checked '0'}}
                    not check
                {{else}}
                    checked
                {{/if_eq}}
            </button>
        </td>
        <input type="hidden" id="item-{{resume_id}}-id" value="{{id}}">
    </tr>
    {{/each}}
</script>

<script src="/js/index.js"></script>
